/**
 * Copyright (C), 2001-2031, www.bosssof.com.cn
 * FileName: CacheConfig.java
 * Author: YuXingZh
 * Date: 28/5/2024 下午9:13
 * Description:
 * 缓存配置类
 * History:
 * Date          Author   Version  Desc
 * 2024-01-01    bosssoft  1.0.0   initialize this file
 */
package com.bosssoft.g1.common.config;

/**
 * @className: CacheConfig
 * @description: 配置缓存
 * @author: YuXingZh
 * @date: 28/5/2024下午9:13
 * @since 1.0
 **/
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cache.concurrent.ConcurrentMapCacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableCaching
public class CacheConfig {

    @Bean
    public CacheManager cacheManager() {
        return new ConcurrentMapCacheManager("myCache");
    }
}
